package com.peng.order.feign;

import com.peng.pojo.StationInfoVO;
import com.peng.pojo.param.GunStatusUpdateParam;
import com.peng.web.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author： Peng
 * @date： 2024/6/26
 * @version: 1.0
 */
@FeignClient("deviceService")
public interface DeviceClient {
    @GetMapping("/device/station/info/{gunId}")
    JsonResult<StationInfoVO> getStationInfo(@PathVariable Integer gunId);

    @PostMapping("/device/station/gun/status/update")
    JsonResult<Boolean> updateStationStatus(@RequestBody GunStatusUpdateParam gunStatusUpdateParam);

}
